<template>
  <div id="notice">
    <div
      class="notice-up"
      :style="{
      borderRadius:styles.circle+'px',
      marginTop:styles.marginTop+'px',
       marginBottom:styles.marginBottom+'px',
        marginLeft:styles.marginLR+'px',
         marginRight:styles.marginLR+'px',
         backgroundColor:styles.colorBg,
         color:styles.colorWord
    }"
    >
      <div class="notice-up-left">
        <el-image
          style="width: 25px; height: 25px;margin-right:5px"
          :src="styles.hand[0].img==''?img:styles.hand[0].img"
          fit="cover"
        ></el-image>
      </div>
      <el-carousel
        class="notice-up-right"
        indicator-position="none"
        direction="vertical"
        :autoplay="true"
        :loop="true"
      >
        <el-carousel-item>{{styles.hand[0].title}}</el-carousel-item>
        <el-carousel-item>{{styles.hand[0].title}}</el-carousel-item>
      </el-carousel>
      <i class="el-icon-arrow-right"></i>
    </div>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
  name: "notice",
  data() {
    return {
      img: require("../../../assets/img/notice4.png"),
    };
  },
  props: ["styles"],
};
</script>

<style lang="less" scoped>
#notice {
  .notice-up {
    background-color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 10px;
    .notice-up-right {
      width: 300px;
      height: 30px;
      line-height: 30px;
    }
  }
}
</style>
